/* **********************************************************
 * Copyright 2010 Dimitar Vangelovski
 *
 * This file is part of the Gens3 3D Engine.
 * 
 * The Gens3 3D Engine is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 * 
 * The Gens3 3D Engine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with the Gens3 3D Engine; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA
 * **********************************************************/


#include "common.h"
#include "LightObject.h"

CLightObject::CLightObject()
{
	m_strNodeName = "noname";
	m_TmPos = CVertex();
	m_bLightUseLight = false;
	m_LightColor = CColorRGB();
	m_fLightIntens = 0.0f;
	m_fLightAttnend = 0.0f;
	m_nLightShadows = 0;
}

CLightObject::CLightObject(const CLightObject &other)
{
	m_strNodeName = other.GetNodeName();
	m_TmPos = other.GetTmPos();
	m_bLightUseLight = other.GetLightUseLight();
	m_LightColor = other.GetLightColor();
	m_fLightIntens = other.GetLightIntens();
	m_fLightAttnend = other.GetLightAttnend();
	m_nLightShadows = other.GetLightShadows();
}

CLightObject::CLightObject(std::string strNodeName, CVertex &tmPos, bool bLightUseLight, CColorRGB &lightColor, float fLightIntens, float fLightAttnend, int nLightShadows)
{
	m_strNodeName = strNodeName;
	m_TmPos = tmPos;
	m_bLightUseLight = bLightUseLight;
	m_LightColor = lightColor;
	m_fLightIntens = fLightIntens;
	m_fLightAttnend = fLightAttnend;
	m_nLightShadows = nLightShadows;
}

CLightObject::~CLightObject()
{
}
